RELATED POSTS
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
C/C++,java,python c++ keywords, identifiers, data types,variables,modifiers,storage classes,operators,for loop ,while loop,do while loop,if else statement,nested loops,break continue goto statement,functions ,call by value call by reference ,arrays ,strings,pointers,data structures ,classes and objects,inheritance,polymorphism,operator overloading,function overloading,data abstraction,data encapsulation,dynamic memory allocation for array and objects,function templates,class templates,
3 integers - S, E and W respectively
Fahrenheit to Celsius conversion table. One line for every Fahrenheit and corresponding Celsius value. On Fahrenheit value and its corresponding Celsius value should be separate by tab ("\t")
0
100
20
0 -17
20 -6
40 4
60 15
80 26
100 37
code:
#include<iostream>
using namespace std;
int main()
{
int e,w,s ,c;
cin >> s>> e >> w ;
for( int i=s ; i<=e ; i+=w)
{
c= (i - 32)/1.8;
cout << i << "\t" << c << endl ;
}
}
0 comments:
Post a Comment