You cannot assign character to an integer variable.
For more information visit: Input and Output in C
Type: Posts; User: programiz
You cannot assign character to an integer variable.
For more information visit: Input and Output in C
This program simply reverse anything you write before you hit enter.
-To understand recursive function, you need have know of what local(automatic variable) is. A local variable can exist only...
I hope this source code will help u.
#include <iostream>
using namespace std;
int main()
{
int array[14]={1,1,3,4,2,64,2,3,1,3,4,53,5,6},num,i,count=0;
cout<<"Enter the number you...
You have declared variable comp as double. But, in line 19 and 23, n%d returns integer value. When you tried to assign integer value to double using code comp=n%d, it shows error. Source: C operators...