Recent Pastes

Pastes found: 2605

This is the pop-up flow.

[close]

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a[100];
    bool f=0,vl=1;
    int count=0;
    while(gets(a))
    {
    f=0;
    vl=1;
    count=0;
    for(int i=0;a[i]!='\0';i++)
    {
        if((a[i]>='0'&&a[i]<='9'))
            vl=1;
            else if(a[i]=='.')
 
18 Jul 2017, 03:17 PM

This is the pop-up flow.

[close]

#include <iostream>
#include <cmath>
 
using namespace std;
 
int main()
{
    float base, exponent, result;
 
    cout << "Enter base and exponent respectively:  ";
    cin >> base >> exponent;
 
    result = pow(base, exponent);
 
    cout << base << "^" << exponent << " = " << result;
 
    return 0;
}
 
 
 
Exponent by saikat

This is the pop-up flow.

[close]

#include<bits\stdc++.h>
using namespace std;
int isnumber(char *str)
{
        int i=0;
        int dot=0;
        int flag=0;
 
        while(str[i]!='\0')
        {
            if((str[i]>='0' && str[i]<='9') || str[i]=='.' && dot<1 )
            {
                if(str[i]=='.')
 

This is the pop-up flow.

[close]

#include<bits\stdc++.h>
using namespace std;
int isnumber(char *str)
{
        int i=0;
        int dot=0;
        int flag=0;
 
        while(str[i]!='\0')
        {
            if((str[i]>='0' && str[i]<='9') || str[i]=='.' && dot<1 )
            {
                if(str[i]=='.')
 

This is the pop-up flow.

[close]

#include<bits\stdc++.h>
using namespace std;
int isnumber(char *str)
{
        int i=0;
        int dot=0;
        int flag=0;
 
        while(str[i]!='\0')
        {
            if((str[i]>='0' && str[i]<='9') || str[i]=='.' && dot<1 )
            {
                if(str[i]=='.')
 

This is the pop-up flow.

[close]

#include<bits\stdc++.h>
using namespace std;
int isnumber(char *str)
{
        int i=0;
        int dot=0;
        int flag=0;
 
        while(str[i]!='\0')
        {
            if((str[i]>='0' && str[i]<='9') || str[i]=='.' && dot<1 )
            {
                if(str[i]=='.')
 

This is the pop-up flow.

[close]

#include<bits\stdc++.h>
using namespace std;
int isnumber(char *str)
{
        int i=0;
        int dot=0;
        int flag=0;
 
        while(str[i]!='\0')
        {
            if((str[i]>='0' && str[i]<='9') || str[i]=='.' && dot<1 )
            {
                if(str[i]=='.')
 
18 Jul 2017, 02:42 PM

This is the pop-up flow.

[close]

#include <bits/stdc++.h>
using namespace std;
int main()
{
	char number[10];
	int flag=0;
	int length;
	clrscr();
	printf("Enter a number \n");
	scanf("%s",number);
	length=strlen(number);
	while(length--)
	{
		if(number[length]=='.')
		{
			flag=1;
			break;
		}
	}
	if(flag)
		printf("Floating point\n");
	else
		printf("Integer\n");
 
	getch();
	return 0;
}

This is the pop-up flow.

[close]

#include<bits/stdc++.h>
using namespace std;
int main()
{
 
    char a[1000];
    bool f=0;
 
   while( gets(a))
    {
 
    f=0;
    if(a[0]>='0'&&a[0]<='9')
        f=1;
    else
    {
    for(int i=1;a[i]!='\0';i++)
    {
 
        if((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')
           ||(a[i]>
18 Jul 2017, 02:27 PM

This is the pop-up flow.

[close]

saikat code deeee
 
Invalid Email or Password